[Manager Summary]

PMSetLastPage


Sets for the print dialog box the page number at which to end printing.
OSStatus PMSetLastPage(PMPrintSettings printSettings, UInt32 last, Boolean lock)
PARAMETERS
printSettings
A PMPrintSettings object previously created by your application for the current printing session. On return, this object is updated to reflect the page number you specify in the last parameter.
last
A page number. Pass the number for the last page to print.
lock
A Boolean value. Pass TRUE if you wish to lock the To field in the page range portion of the print dialog box.
function result
Passing TRUE in the lock parameter effects only printer drivers for Mac OS X and LaserWriter printer drivers version 8.7 or later. If you pass TRUE for any other printer driver, this function returns the result code kPMLockIgnored.
CARBON PORTING NOTES
 The PMSetLastPagefunction replaces the Printing Manager opcode kPrinterDirectOpCode in kPDVerifySelect mode, and sets information previously stored in the iLstPage field of the Printing Manager structure TPrJob.

Last modified: 5/7/99. Status: Draft Copyright 1999 Apple Computer, Inc. All rights reserved.